home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / comm / net / LPx.lha / LPQ next >
Encoding:
AmigaDOS Script File  |  2000-10-18  |  658 b   |  37 lines

  1. .key PName
  2. .bra {
  3. .ket }
  4.  
  5. ;/*
  6. ;** $VER: LPQ 1.000 (18.10.00) © <gcalzo@geocities.com>
  7. ;**
  8. ;**
  9. ;**  FUNCTION:
  10. ;**      Returns info on the printer queue status
  11. ;**
  12. ;**      - PName      printer queue name
  13. ;**
  14. ;**      In smb.conf use the following cmd:
  15. ;**         lpq command = /Samba/LPQ %p
  16. ;**
  17. ;** $HISTORY:
  18. ;**
  19. ;** 18 Oct 2000 : 001.000 : First public release to Aminet
  20. ;** 14 Oct 2000 : 000.002 : Corrected a typo in the header :-(
  21. ;** 26 Jun 2000 : 000.001 : Returns info on the printer queue status
  22. ;**
  23. ;*/
  24.  
  25. FailAt 21
  26.  
  27. Echo >>T:LPQ.log ""
  28. Date >>T:LPQ.log
  29. Echo >>T:LPQ.log "Queue status Printer={PName}"
  30.  
  31. ;Echo ONLINE
  32. ;Echo OFFLINE
  33. Echo OK
  34.  
  35. FailAt 10
  36.  
  37.